home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / grafik / gfx-system / cybershare / devdocs / autodoc / colormodels.doc < prev    next >
Encoding:
Text File  |  1995-01-09  |  2.2 KB  |  111 lines

  1. This is a description of all currently supported colormodels:
  2.  
  3. PIXFMT_LUT8
  4.  
  5.  This color model is the normal one. One Byte, one pixel. The value is used as
  6.  an index to a color lookup table.
  7.  
  8.  
  9. PIXFMT_RGB15
  10.  
  11.  In this mode all pixels consist of one word. But now this value is no index to
  12.  a clut anymore, it is the direct color value. Each value (red,green or blue)
  13.  is defined by 5 bits. This makes a sum of 15 bits, one bit in the word is
  14.  unused. 32768 color values are possible with this color scheme. This color
  15.  model is used by the Cybervision board for example.
  16.  
  17.  XRRRRRGG GGGBBBBB  (Each letter represents one bit in a 16bit word)
  18.  
  19.  
  20.  
  21. PIXFMT_BGR15
  22.  
  23.  This coding scheme is the same as PIXFMT_RGB15 but the red and blue values
  24.  are exchanged.
  25.  
  26.  XBBBBBGG GGGRRRRR
  27.  
  28.  
  29.  
  30. PIXFMT_RGB15PC
  31.  
  32.  Same as PIXFMT_RGB15 but low and high byte are swapped in the word.
  33.  
  34.  GGGBBBBB XRRRRRGG
  35.  
  36.  
  37.  
  38. PIXFMT_BGR15PC
  39.  
  40.  Same as PIXFMT_BGR15 but low and high byte are swapped just like in
  41.  PIXFMT_RGB15PC
  42.  
  43.  GGGRRRRR XBBBBBGG
  44.  
  45.  
  46.  
  47. PIXFMT_RGB16
  48.  
  49.  This format is similar to PIXFMT_RGB15 but now 6 bits are used for the green
  50.  value. This makes a total of 65535 colors. The coding scheme is as follows:
  51.  
  52.  RRRRRGGG GGGBBBBB
  53.  
  54.  
  55.  
  56. PIXFMT_BGR16
  57.  
  58.  Same as PIXFMT_RGB16 but the red and blue values are exchanged.
  59.  
  60.  BBBBBGGG GGGRRRRR
  61.  
  62.  
  63.  
  64. PIXFMT_RGB16PC
  65.  
  66.  This is the same like PIXFMT_RGB16 but the low and high byte are swapped.
  67.  
  68.  GGGBBBBB RRRRRGGG
  69.  
  70.  
  71.  
  72.  
  73. PIXFMT_RGB24
  74.  
  75.  This color model uses 3 bytes per pixel or 8 bits per color usually called
  76. true color mode. With this model you have 16777216 colors available. format.
  77. Each color component may have one of 256 levels:
  78.  
  79.  RRRRRRRR GGGGGGGG BBBBBBBB
  80.  
  81.  
  82.  
  83.  
  84. PIXFMT_BGR24
  85.  
  86.  Same as PIXFMT_RGB24 but with red and blue values swapped.
  87.  
  88.  BBBBBBBB GGGGGGGG RRRRRRRR
  89.  
  90.  
  91.  
  92.  
  93. PIXFMT_ARGB32
  94.  
  95.  This color model represents true color mode with alpha channel. The
  96.  Cybervision board introduces this model. 4 bytes per pixel (or one long word)
  97.  is used. This allows very fast access to the graphics data but needs very
  98.  much memory.
  99.  
  100.  AAAAAAAA RRRRRRRR GGGGGGGG BBBBBBBB
  101.  
  102.  
  103.  
  104.  
  105. PIXFMT_BGRA32
  106.  
  107.  Same as PIXFMT_ARGB32 but the bytes in a word are swapped AND the words in the
  108.  longword are swapped, too.
  109.  
  110.  BBBBBBBB GGGGGGGG RRRRRRRR AAAAAAAA
  111.